@echo off
setlocal

:: 获取用户的主目录
set USERDIR=%USERPROFILE%

:: 删除 .hashsum 文件夹中的 hashsum.exe
del "%USERDIR%\.hashsum\hashsum.exe"

:: 删除整个 hashsum 注册表项
reg delete "HKCU\Software\Classes\*\shell\hashsum" /f

@REM :: 删除所有与 hashsum 相关的注册表项（包括 md5, sha1, sha256, *）
@REM reg delete "HKCU\Software\Classes\*\shell\hashsum\command" /f
@REM reg delete "HKCU\Software\Classes\*\shell\hashsum\command\md5" /f
@REM reg delete "HKCU\Software\Classes\*\shell\hashsum\command\sha1" /f
@REM reg delete "HKCU\Software\Classes\*\shell\hashsum\command\sha256" /f
@REM reg delete "HKCU\Software\Classes\*\shell\hashsum\command\*" /f

echo Uninstallation complete. The right-click menu has been removed.
pause
